<?php
	include '../init.php';
	if (isset($_GET['id'])&&(int)$_GET['id']>0) {
		$id=(int)$_GET['id'];
		$sql="DELETE FROM article WHERE `id`='{$id}';";
		$mysql->del($sql);
		$sql="DELETE FROM message WHERE `article_id`='{$id}';";
		$mysql->del($sql);

		header("location:index.php");
	}
?>